package com.customization.unionpay.market.dao;

import com.alitriph5.logging.Logger;
import com.alitriph5.logging.LoggerFactory;
import weaver.conn.RecordSet;

public class MarketAdvancePayCheckDao {

    public Logger log = LoggerFactory.getLogger(MarketAdvancePayCheckDao.class);

    public void updateJTJE (Double newJtye,int id) {
        StringBuilder sb = new StringBuilder();
        sb.append("UPDATE formtable_main_27_dt1 SET bchxhtjtje =  ")
                .append(newJtye).append(" WHERE id =").append(id);
        try {
            RecordSet rs = new RecordSet();
            rs.execute(sb.toString());
        } catch (Exception e) {
            log.error("更新'本次核销合同计提金额'失败");
        }
    }

    public void updateLZJE (Double bzje,int id) {
        StringBuilder sb = new StringBuilder();
        sb.append("UPDATE formtable_main_27_dt1 SET lzje =  ")
                .append(bzje).append(" WHERE id =").append(id);
        try {
            RecordSet rs = new RecordSet();
            rs.execute(sb.toString());
        } catch (Exception e) {
            log.error("报账金额写入【列账金额】失败");
        }
    }
}
